package com.luoye.lj.util.mvc.util;

/**
 * Created by root on 2015/10/21.
 */
public class PageService {
    public static int countPages(int max, int results) {
        int totalpages;
        if (results % max == 0) {
            totalpages = results / max;
        } else totalpages = results / max + 1;
        return totalpages;
    }

    PageService() {

    }

}
